package com.zsrd.lessons.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("ts_subject")
public class TsSubject {

    @TableId(value = "id")
    private Long id;

    @TableField("subject_name")
    @ApiModelProperty("科目名称")
    private String subjectName;

    @TableField("subject_parent_id")
    @ApiModelProperty("父级科目id")
    private Long subjectParentId;

    @TableField(exist = false)
    private List<TsSubject> children;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 显示顺序
     */
    @ApiModelProperty("显示顺序")
    @TableField("order_num")
    private int orderNum;


}
